package com.wangy.mapper;

import com.wangy.bean.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author yyzb
 * @date 2024/12/28 19:06
 */
@Mapper
public interface PermissionMapper {

    List<String> getPermissionByUserId(Long userId);

    @Select("SELECT id, parent_id, permission_name, permission_code FROM permission")
    List<Permission> getAllPermissions();

}
